Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Properly catch not found explode cols #17020

Merged
merged 1 commit into from
Jun 17, 2024

Conversation

coastalwhite
Copy link
Collaborator

Fixes #15852.

This adds a check for whether a column is defined or not in explode.

@github-actions github-actions bot added fix Bug fix python Related to Python Polars rust Related to Rust Polars labels Jun 17, 2024
@ritchie46
Copy link
Member

Can you add a test?

Fixes pola-rs#15852.

This adds a check for whether a column is defined or not in `explode`.
@coastalwhite
Copy link
Collaborator Author

Can you add a test?

Already on it :)

Copy link

codspeed-hq bot commented Jun 17, 2024

CodSpeed Performance Report

Merging #17020 will degrade performances by 17.06%

Comparing coastalwhite:fix-explode-column-panic-15852 (e168221) with main (b19d823)

Summary

⚡ 1 improvements
❌ 1 regressions
✅ 35 untouched benchmarks

⚠️ Please fix the performance issues or acknowledge them on CodSpeed.

Benchmarks breakdown

Benchmark main coastalwhite:fix-explode-column-panic-15852 Change
test_filter1 796.6 µs 689 µs +15.62%
test_groupby_h2oai_q5 1.8 ms 2.2 ms -17.06%

Copy link

codecov bot commented Jun 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.00%. Comparing base (4c1c67c) to head (e168221).
Report is 6 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #17020      +/-   ##
==========================================
- Coverage   81.04%   81.00%   -0.05%     
==========================================
  Files        1446     1448       +2     
  Lines      190422   190543     +121     
  Branches     2708     2722      +14     
==========================================
+ Hits       154321   154340      +19     
- Misses      35605    35700      +95     
- Partials      496      503       +7     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ritchie46 ritchie46 merged commit 69e3824 into pola-rs:main Jun 17, 2024
26 checks passed
@coastalwhite coastalwhite deleted the fix-explode-column-panic-15852 branch June 17, 2024 14:46
@coastalwhite coastalwhite self-assigned this Jun 24, 2024
@coastalwhite coastalwhite added the accepted Ready for implementation label Jun 24, 2024
@stinodego stinodego changed the title fix: properly catch not found explode cols fix: Properly catch not found explode cols Jun 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted Ready for implementation fix Bug fix python Related to Python Polars rust Related to Rust Polars
Projects
None yet
Development

Successfully merging this pull request may close these issues.

explode() non-existent column causing PanicException in LazyFrame collection
2 participants